package com.nmgs.entity;


import lombok.Data;

import java.io.Serializable;
import java.sql.Date;
import java.util.Objects;

/**
 * 用户 UserTable
 *
 * @author ruoyi
 */
@Data
public class UserTable implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 起始执行日期时间
     */
    private Date begdate;

    /**
     * 用户ID
     */
    private String manno;

    /**
     * 操作员姓名
     */
    private String man;

    /**
     * 区域编码
     */
    private Long areano;

    /**
     * 人员所在路段编号
     */
    private Long roadno;

    /**
     * 人员所在路段编号
     */
    private Long stano;

    /**
     * 人员所在路段站编号
     */
    private Long groupno;

    /**
     * 身份编号
     * 参见《身份编号对照表》
     */
    private int manid;

    /**
     * 操作权限控制码
     */
    private Long ctrlid;

    /**
     * 操作密码
     */
    private String passwdid;

    /**
     * IC卡卡序列号
     */
    private String cardid;

    /**
     * 身份卡印刷号
     */
    private Long cardno;

    /**
     * 性别
     */
    private Long sex;
    /**
     * 错误登录次数
     */
    private Integer loginerrors;
    /**
     * 性别
     */
    private Date lastlogintime;

    private String token;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public UserTable() {

    }

    public UserTable(String manno) {
        this.manno = manno;
    }

    public Date getBegdate() {
        return begdate;
    }

    public void setBegdate(Date begdate) {
        this.begdate = begdate;
    }

    public String getManno() {
        return manno;
    }

    public void setManno(String manno) {
        this.manno = manno;
    }

    public String getMan() {
        return man;
    }

    public void setMan(String man) {
        this.man = man;
    }

    public Long getAreano() {
        return areano;
    }

    public void setAreano(Long areano) {
        this.areano = areano;
    }

    public Long getRoadno() {
        return roadno;
    }

    public void setRoadno(Long roadno) {
        this.roadno = roadno;
    }

    public Long getStano() {
        return stano;
    }

    public void setStano(Long stano) {
        this.stano = stano;
    }

    public Long getGroupno() {
        return groupno;
    }

    public void setGroupno(Long groupno) {
        this.groupno = groupno;
    }

    public int getManid() {
        return manid;
    }

    public void setManid(int manid) {
        this.manid = manid;
    }

    public Long getCtrlid() {
        return ctrlid;
    }

    public void setCtrlid(Long ctrlid) {
        this.ctrlid = ctrlid;
    }

    public String getPasswdid() {
        return passwdid;
    }

    public void setPasswdid(String passwdid) {
        this.passwdid = passwdid;
    }

    public String getCardid() {
        return cardid;
    }

    public void setCardid(String cardid) {
        this.cardid = cardid;
    }

    public Long getCardno() {
        return cardno;
    }

    public void setCardno(Long cardno) {
        this.cardno = cardno;
    }

    public Long getSex() {
        return sex;
    }

    public void setSex(Long sex) {
        this.sex = sex;
    }

    public Integer getLoginerrors() {
        return loginerrors;
    }

    public void setLoginerrors(Integer loginerrors) {
        this.loginerrors = loginerrors;
    }

    public Date getLastlogintime() {
        return lastlogintime;
    }

    public void setLastlogintime(Date lastlogintime) {
        this.lastlogintime = lastlogintime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserTable userTable = (UserTable) o;
        return Objects.equals(begdate, userTable.begdate) && Objects.equals(manno, userTable.manno) && Objects.equals(man, userTable.man) && Objects.equals(areano, userTable.areano) && Objects.equals(roadno, userTable.roadno) && Objects.equals(stano, userTable.stano) && Objects.equals(groupno, userTable.groupno) && Objects.equals(manid, userTable.manid) && Objects.equals(ctrlid, userTable.ctrlid) && Objects.equals(passwdid, userTable.passwdid) && Objects.equals(cardid, userTable.cardid) && Objects.equals(cardno, userTable.cardno) && Objects.equals(sex, userTable.sex) && Objects.equals(loginerrors, userTable.loginerrors) && Objects.equals(lastlogintime, userTable.lastlogintime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(begdate, manno, man, areano, roadno, stano, groupno, manid, ctrlid, passwdid, cardid, cardno, sex, loginerrors, lastlogintime);
    }

    @Override
    public String toString() {
        return "UserTable{" +
                "begdate=" + begdate +
                ", manno=" + manno +
                ", man='" + man + '\'' +
                ", areano=" + areano +
                ", roadno=" + roadno +
                ", stano=" + stano +
                ", groupno=" + groupno +
                ", manid=" + manid +
                ", ctrlid=" + ctrlid +
                ", passwdid='" + passwdid + '\'' +
                ", cardid='" + cardid + '\'' +
                ", cardno=" + cardno +
                ", sex=" + sex +
                ", loginerrors=" + loginerrors +
                ", lastlogintime=" + lastlogintime +
                '}';
    }
}
